package cn.stylefeng.guns.modular.fruits.service;

import cn.stylefeng.guns.base.pojo.page.LayuiPageInfo;
import cn.stylefeng.guns.modular.fruits.entity.FruitsOrderOut;
import cn.stylefeng.guns.modular.fruits.model.params.FruitsOrderOutParam;
import cn.stylefeng.guns.modular.fruits.model.result.FruitsOrderOutResult;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * 出库单管理 服务类
 */
public interface FruitsOrderOutService extends IService<FruitsOrderOut> {

    /**
     * 新增
     *
     * @author zhucx
     * @Date 2022-06-16
     */
    void add(FruitsOrderOutParam param);

    /**
     * 删除
     *
     * @author zhucx
     * @Date 2022-06-16
     */
    void delete(FruitsOrderOutParam param);

    /**
     * 更新
     *
     * @author zhucx
     * @Date 2022-06-16
     */
    void update(FruitsOrderOutParam param);

    /**
     * 查询单条数据，Specification模式
     *
     * @author zhucx
     * @Date 2022-06-16
     */
    FruitsOrderOutResult findBySpec(FruitsOrderOutParam param);

    /**
     * 查询列表，Specification模式
     *
     * @author zhucx
     * @Date 2022-06-16
     */
    List<FruitsOrderOutResult> findListBySpec(FruitsOrderOutParam param);

    /**
     * 查询分页数据，Specification模式
     *
     * @author zhucx
     * @Date 2022-06-16
     */
     LayuiPageInfo findPageBySpec(FruitsOrderOutParam param,String condition,Long operateId);

     /**
      * 查询分页数据，Specification模式
      *
      * @author zhucx
      * @Date 2022-06-16
      */
      LayuiPageInfo findzhifacangOutPagelist(FruitsOrderOutParam param,Long operateId);

	int countBydate(FruitsOrderOutParam to,Long operateId);

}
